﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TifloLibrosLibData;

public partial class RegistracionPersonaConfirmar : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ViewState.Add("ID", Request.QueryString["id"]);
        }
    }

    protected void btnEnviar_Click(object sender, EventArgs e)
    {
        UsuariosDA usuariosDA = new UsuariosDA();
        usuariosDA.ActualizarPassword(int.Parse(ViewState["ID"].ToString()), txtPassword.Text);
        Response.Redirect("RegistracionPersonaConfirmado.aspx");
    }
}